using System.ComponentModel.DataAnnotations;
using SqlSugar;
using RuoVea.ExSugar.Entity;
using RuoVea.ExEnum;

namespace Gantt.Server.Models;

/// <summary>
/// 甘特图状态
/// </summary>
[SugarTable(nameof(GanttStatus), "甘特图状态")]
public class GanttStatus : EntityBase
{
    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称", ColumnName = "Name")]
    public string? Name { get; set; }

    /// <summary>
    /// 颜色
    /// </summary>
    [SugarColumn(ColumnDescription = "颜色", ColumnName = "Color", IsNullable = true)]
    public string? Color { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnDescription = "排序", IsNullable = true, DefaultValue = "10")]
    public int Sort { get; set; }
}